import {RouteProp} from '@react-navigation/native';
import {NativeStackNavigationProp} from '@react-navigation/native-stack';

export type RootStackParamList = {
  BottomTabs: {
    screen?: string;
  };
  Category: undefined;
  Detail: {
    id: number;
    screen?: string;
  };
};

export type BottomTabParamList = {
  TopTabs: undefined;
  Listen: undefined;
  Found: undefined;
  Account: undefined;
};

export type RootStackNavigation = NativeStackNavigationProp<RootStackParamList>;

export interface IHomeprops {
  navigation: RootStackNavigation;
}

export interface IDetailProps {
  route: RouteProp<RootStackParamList>;
}

export interface Icategorys {
  name: string;
  id: number;
  classity: string;
}

export interface IState {
  counter: {
    count: Number;
    isEdit: Boolean;
    title: String;
  };
}

export interface IGuess {
  id: string;
  title: string;
  img: string;
}

export interface IOnlineMusic {
  id: string;
  title: string;
  img: string;
  played: number;
  nowListen: number;
  remark: string;
}
